package com.guofen.dao;

import com.guofen.pojo.SjqWaterProductionEquipmentMaintenanceDay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqWaterProductionEquipmentMaintenanceDayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqWaterProductionEquipmentMaintenanceDay record);

    int insertSelective(SjqWaterProductionEquipmentMaintenanceDay record);

    SjqWaterProductionEquipmentMaintenanceDay selectByPrimaryKey(Integer id);

    SjqWaterProductionEquipmentMaintenanceDay getlast(Map<String, Object> data);

    List<SjqWaterProductionEquipmentMaintenanceDay> getlastByName(String equipmentName);

    int updateByPrimaryKeySelective(SjqWaterProductionEquipmentMaintenanceDay record);

    int updateByPrimaryKey(SjqWaterProductionEquipmentMaintenanceDay record);

    int selectInToday();

    List<SjqWaterProductionEquipmentMaintenanceDay> getDailyRecords();

    List<SjqWaterProductionEquipmentMaintenanceDay> selectAll();

    List<SjqWaterProductionEquipmentMaintenanceDay> selectByDate(@Param("startDate") String startDate,
                                            @Param("endDate") String endDate);
}